import pygame

def pathToImage(imageFile):
	return PATH_TO_IMAGES + imageFile

def getImage(type):
	return pygame.image.load(images[type]).convert_alpha()

PATH_TO_IMAGES = "data/image/"
AP_IMAGE = "ap.png"
ROBOT_IMAGE = "robot.png"
HUMAN_IMAGE = "human.png"
ITEM_GOOD_FAST_IMAGE = "faster.png"
ITEM_GOOD_MEM_IMAGE = "memory.png"
ITEM_GOOD_AP_IMAGE = "goodap.png"
ITEM_GOOD_KILL_IMAGE = "killer.png"
ITEM_GOOD_EVOLUTIVE_IMAGE = "evolution.png"
ITEM_BAD_STOP_IMAGE = "stopper.png"
ITEM_BAD_SLOW_IMAGE = "slower.png"
ITEM_BAD_AP_IMAGE = "badap.png"

AP = 0x80
ROBOT = AP + 1
HUMAN = ROBOT + 1
ITEM_GOOD_FAST = HUMAN + 1
ITEM_GOOD_MEM = ITEM_GOOD_FAST + 1
ITEM_GOOD_AP = ITEM_GOOD_MEM + 1
ITEM_GOOD_KILL = ITEM_GOOD_AP + 1
ITEM_GOOD_EVOLUTIVE = ITEM_GOOD_KILL + 1
ITEM_BAD_STOP = ITEM_GOOD_EVOLUTIVE + 1
ITEM_BAD_SLOW = ITEM_BAD_STOP + 1
ITEM_BAD_AP = ITEM_BAD_SLOW + 1

images = {}
images[AP] = pathToImage(AP_IMAGE)
images[ROBOT] = pathToImage(ROBOT_IMAGE)
images[HUMAN] = pathToImage(HUMAN_IMAGE)
images[ITEM_GOOD_FAST] = pathToImage(ITEM_GOOD_FAST_IMAGE)
images[ITEM_GOOD_MEM] = pathToImage(ITEM_GOOD_MEM_IMAGE)
images[ITEM_GOOD_AP] = pathToImage(ITEM_GOOD_AP_IMAGE)
images[ITEM_GOOD_KILL] = pathToImage(ITEM_GOOD_KILL_IMAGE)
images[ITEM_GOOD_EVOLUTIVE] = pathToImage(ITEM_GOOD_EVOLUTIVE_IMAGE)
images[ITEM_BAD_STOP] = pathToImage(ITEM_BAD_STOP_IMAGE)
images[ITEM_BAD_SLOW] = pathToImage(ITEM_BAD_SLOW_IMAGE)
images[ITEM_BAD_AP] = pathToImage(ITEM_BAD_AP_IMAGE)

